Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] [13.0] pos_payment_terminal: directly switch to 'waiting for card', prevent endless status polling #1

Open
wants to merge 2 commits into
base: 13.0
Choose a base branch
from

Conversation

thomaspaulb
Copy link
Member

No description provided.

) {
resolve(pay_line.terminal_transaction_success);
// Stop the loop
clearInterval(timerId);
}
}
}
if (!got_response && retries > 30) {
// if after 30 seconds still no word about the status of the transaction,
// then consider it lost in space. Let user decide the status.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this plays well with other drivers such as Telium, which may not return any status until there is a definite Approved or Cancelled - in that case 30 seconds may be too soon. Maybe this should be made configurable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or we could just remove this, since the 'waiting for card' screen does show a 'Cancel' button, so the user is not stuck.

@thomaspaulb thomaspaulb force-pushed the 13.0-pos-payment-terminal-fixes branch from 62d3001 to 64d9bd8 Compare July 28, 2022 06:15
@thomaspaulb thomaspaulb changed the title 13.0 pos payment terminal fixes [FIX] [13.0] pos_payment_terminal: directly switch to 'waiting for card', prevent endless status calling Jul 28, 2022
@thomaspaulb thomaspaulb changed the title [FIX] [13.0] pos_payment_terminal: directly switch to 'waiting for card', prevent endless status calling [FIX] [13.0] pos_payment_terminal: directly switch to 'waiting for card', prevent endless status polling Jul 28, 2022
ntsirintanis pushed a commit that referenced this pull request Dec 11, 2024
[FIX] use float_compare to compare floats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant